﻿class RythmCircle extends MovieClip{
	
	
	
	function RythmCircle(){
		
		
		onPress = playSound;
		//onMouseDown = playSound;
		
		
	}
	
	function playSound():Boolean{
		
		
		//trace("playSound called");
		
		var cf = this._currentframe;
		
		//1~~82
		//83~89
		if(1 <= cf && cf < 68){
			trace("fail");
			
			
			gotoAndPlay("popBad");
			_root.RC.badScore++;
			_root.RC.warningCnt++;
			
			
			delete this.onPress;
			//_root.snd_knockFail.start();
		}else if(68 <= cf && cf <= 89){
			trace("excellent");
			
			
			gotoAndPlay("pop");
			_root.RC.currentScore++;
			delete this.onPress;
			return true;
			//_root.snd_knock.start();
		}
		
		
		
		
		
		return false;
		
		//delete onMouseDown;
		
		
	}
	
	
	
	
	
}